package com.sservice.urp.dao;


import com.sservice.urp.entity.Dep;
import com.sservice.urp.vo.DepVo;

import java.util.List;

public interface IDepDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Dep arg);

    int insertSelective(Dep arg);

    Dep selectByPrimaryKey(Integer id);

    /**
     * 根据企业ID和名称进行查找
     *
     * @param dep
     * @return
     */
    Dep queryByDepNameAndComId(Dep dep);

    int updateByPrimaryKeySelective(Dep arg);

    List<Dep> queryByPage(DepVo arg);

    int queryCount(DepVo arg);

    int updateByPrimaryKey(Dep arg);


    int queryCountByComId(DepVo user);

}